/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="MEDICTOSADMINISTRACAO")
public class MedictosAdministracaoProteu implements Serializable{

    @Id
    @Column(name="MAD_ST_CODIGO")
    private String madStCodigo;
    @Column(name="MAD_ST_DESCRICAO")
    private String madStDescricao;

    public String getMadStCodigo() {
        return madStCodigo;
    }

    public void setMadStCodigo(String madStCodigo) {
        this.madStCodigo = madStCodigo;
    }

    public String getMadStDescricao() {
        return madStDescricao;
    }

    public void setMadStDescricao(String madStDescricao) {
        this.madStDescricao = madStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final MedictosAdministracaoProteu other = (MedictosAdministracaoProteu) obj;
        if ((this.madStCodigo == null) ? (other.madStCodigo != null) : !this.madStCodigo.equals(other.madStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 71 * hash + (this.madStCodigo != null ? this.madStCodigo.hashCode() : 0);
        return hash;
    }


}
